package level.editor.main;

import java.awt.Point;

import core.Constants;

public class LevelHelper
{
	public static Point snapToGrid(Point point)
	{
		int newX = (int) (point.x - (point.x % Constants.TILE_SIZE));
		int newY = (int) (point.y - (point.y % Constants.TILE_SIZE));

		return new Point(newX, newY);
	}
}
